home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
InterLaunch 1.1.2
/
src
/
apple.c
next >
Wrap
Text File
|
1995-03-29
|
1KB
|
73 lines
/* ----------------------------------------------------------------------
apple.c
---------------------------------------------------------------------- */
#include "the_defines.h"
#include "the_globals.h"
#include "the_prototypes.h"
/* ----------------------------------------------------------------------
DoMenuApple
---------------------------------------------------------------------- */
void DoMenuApple(theItem)
int theItem;
{
switch (theItem)
{
case APPLE_ABOUT:
AppleAbout();
break;
default:
AppleDA(theItem);
break;
}
}
/* ----------------------------------------------------------------------
AppleAbout
---------------------------------------------------------------------- */
void AppleAbout()
{
DialogPtr myDialog;
short itemHit;
Boolean aboutDone = false;
Boolean modaling;
myDialog = GetNewDialog(DLOG_ABOUT,0,(WindowPtr) -1);
if (myDialog)
{
do
{
ShowWindow(myDialog);
ModalDialog(NIL,&itemHit);
switch(itemHit)
{
case DLOG_ABOUT_OK:
aboutDone = true;
break;
case DLOG_ABOUT_PICT:
aboutDone = true;
break;
}
}
while (!aboutDone);
DisposeDialog(myDialog);
DoUpdate();
}
}
/* ----------------------------------------------------------------------
AppleDA
---------------------------------------------------------------------- */
void AppleDA(theItem)
int theItem;
{
Str255 accName;
int accNumber;
GetItem(gAppleMenu,theItem,accName);
accNumber = OpenDeskAcc(accName);
}